/**
 * @ClassName : OssApplication
 * @Author : 骆发茂
 * @Date: 2021/11/13 16:35
 * @Description :
 */
package com.atguigu.cos;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;



/*而DataSourceAutoConfiguration类使用了@Configuration注解向spring注入了dataSource bean，又因为
项目（oss模块）中并没有关于dataSource相关的配置信息，所以当spring创建dataSource bean时因缺
少相关的信息就会报错。*/
@ComponentScan({"com.atguigu"})
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class CosApplication {
    public static void main(String[] args) {
        SpringApplication.run(CosApplication.class, args);
    }
}